import request from '@/utils/request'

// 系统用户列表
export function sysUserPage(params) {
  return request({
    url: '/mapi/sysUser/page',
    method: 'post',
    params
  })
}

// 系统用户详情
export function sysUserGet(id) {
  return request({
    url: '/mapi/sysUser/get/' + id,
    method: 'get'
  })
}

// 系统用户新增
export function sysUserSave(params) {
  return request({
    url: '/mapi/sysUser/save',
    method: 'post',
    params
  })
}
// 系统用户删除
export function sysUserDelete(id) {
  return request({
    url: '/mapi/sysUser/delete/' + id,
    method: 'delete'
  })
}
// 用户密码更改
export function updatePassword(params) {
  return request({
    url: '/mapi/sysUser/updatePassword',
    method: 'post',
    params
  })
}
// 用户密码重置
export function resetPassword(params) {
  return request({
    url: '/mapi/sysUser/resetPassword',
    method: 'post',
    params
  })
}
